import java.util.Scanner;

//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入电脑的价格：");
        float price = scanner.nextFloat();

        int day = 0;
        int i = 0;
        int total = 0;

        while(total < price){
            i += 1;
            total += i;
            day += 1;
        }
        System.out.println("需要的天数：");
        System.out.println(day);
    }
}